﻿<Core:DXWindow x:Class="QuanLyKho.frmXuatKhoTimKiemThuoc" 
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
               xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" 
               xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" 
               xmlns:Core="http://schemas.devexpress.com/winfx/2008/xaml/core" 
               Height="300" Width="700" Title="Danh sách biệt dược">
    <Grid>
        <dxg:GridControl Name="gridThuoc" PreviewKeyDown="gridDmThuoc_PreviewKeyDown">
            <dxg:GridControl.Columns>
                <dxg:GridColumn FieldName="MaThuoc" Header="Mã thuốc" ReadOnly="True" Width="80" />
                <dxg:GridColumn FieldName="TenThuoc" Header="Tên thuốc" ReadOnly="True" Width="120" />
                <dxg:GridColumn FieldName="TenHamLuong" Header="HL" ReadOnly="True" Width="45" />
                <dxg:GridColumn FieldName="GiaXuat" Header="Giá bán" ReadOnly="True" Width="70">
                    <dxg:GridColumn.EditSettings>
                        <dxe:TextEditSettings Mask="c0" MaskType="Numeric" MaskCulture="Vietnamese (Vietnam)" MaskUseAsDisplayFormat="True" />
                    </dxg:GridColumn.EditSettings>
                </dxg:GridColumn>
                <dxg:GridColumn FieldName="PhieuNhapThuoc.Dm_NhaPhanPhoi.TenNhaPhanPhoi" Header="Nhà Phân Phối" ReadOnly="True"/>
                <dxg:GridColumn FieldName="SoLo" Header="Số lô" ReadOnly="True" Width="70" />
                <dxg:GridColumn FieldName="SoLuongConLai" Header="SL tồn" ReadOnly="True" Width="60">
                    <dxg:GridColumn.EditSettings>
                        <dxe:TextEditSettings HorizontalContentAlignment="Center" />
                    </dxg:GridColumn.EditSettings>
                </dxg:GridColumn>
                <dxg:GridColumn FieldName="TenDonViTinh" Header="ĐVT" ReadOnly="True" Width="70" />
                <dxg:GridColumn FieldName="Dm_Thuoc.Dm_QuyCach.TenQuyCach" Header="Quy cách" ReadOnly="True" Width="50" />
            </dxg:GridControl.Columns>
            <dxg:GridControl.View>
                <dxg:TableView Name="tbvThuoc" ShowGroupPanel="False" MultiSelectMode="None" 
                               NavigationStyle="Row" ShowAutoFilterRow="True" 
                               AllowEditing="False" AutoWidth="True" 
                               MouseDoubleClick="TableView_MouseDoubleClick" 
                               PreviewKeyDown="TableView_PreviewKeyDown" />
            </dxg:GridControl.View>
        </dxg:GridControl>
    </Grid>
</Core:DXWindow>